package com.cloudfun.campusshare.util;

import com.cloudfun.campusshare.common.constant.BaseConstant;
import org.apache.commons.codec.digest.DigestUtils;

/**
 * Created by Huqin on 2020/4/16
 */
public class EncryptUtil {

    private EncryptUtil() {
    }

    /**
     * 加密密码
     *
     * @param password
     * @return
     */
    public static String encodePassword(String password) {
        return DigestUtils.md5Hex(password + BaseConstant.DEFAULT_PASSWORD_SALT);
    }

}
